import { Component, OnInit } from '@angular/core';
import { Observable } from "rxjs/Observable";
import { CanDeactivateInterface } from "../../service/guard/can-deactivate.Interface";

@Component({
  selector: 'app-admin',
  templateUrl: './admin.component.html',
  styleUrls: ['./admin.component.css']
})
export class AdminComponent implements OnInit, CanDeactivateInterface {

  constructor() { }

  ngOnInit() {
  }
  /**
       * 是否可以离开
       * 
       * 
       * @memberof DicComponent
       */
  canDeactivate(): boolean | Observable<boolean> | Promise<boolean> {
    return true;
  }

}



// WEBPACK FOOTER //
// ./src/app/module/admin/admin.component.ts